<template>
  <div>
    <el-drawer :visible.sync="drawer" direction="rtl" size="50%" :with-header="false" :width="700"
      :destroy-on-close="true">
      <!-- 订单待支付，订单已关闭 -->
      <div class="drawer_box" v-if="pageShow == 0">
        <div class="drawer_title">
          <div class="drawer_t">
            <div class="drawer_t_l">
              <img class="drawer_t_l_img" src="/static/skin/herodoo/main/platform/home/img/piliangoumai.png" alt="" />
              查看订单
            </div>
            <img class="drawer_t_r" src="/static/skin/herodoo/main/platform/home/img/guanbi.png" alt=""
              @click="drawer = false" />
          </div>
        </div>
        <div class="drawer_content">
          <div class="content-box">
            <div class="label">订单编号:</div>
            <div class="desc">
              {{ messageList.Code }}
              <div class="states" :style="getState(messageList.STATUS, 'STATUS').style">
                {{ messageList.STATUS }}
              </div>
            </div>
          </div>
          <div class="content-box">
            <div class="label">权益名称:</div>
            <div class="desc name" @click="drawerUpDetail">
              {{ messageList.Name }}
            </div>
          </div>
          <div class="content-box" v-if="messageList.TypeID == 2">
            <div class="label">包含权益:</div>
            <div class="desc">
              <div class="rightsList">
                <div class="rights_son_box" v-if="alreadyList && alreadyList != false">
                  <div class="rights_son" v-for="item in alreadyList" :key="item.ID">
                    <div class="rights_son_title">{{ item.Name }}</div>
                  </div>
                </div>
                <div class="rights_son_box" v-if="buyList && buyList != false">
                  <div class="rights_son" v-for="item in buyList" :key="item.ID">
                    <div class="rights_son_title">{{ item.Name }}</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <div class="content-box">
            <div class="label">购买数量:</div>
            <div class="desc">{{ messageList.Quantity }}</div>
          </div>

          <div class="content-box">
            <div class="label">平台价格:</div>
            <div class="desc">{{ messageList.CostPrice }}</div>
          </div>

          <div class="content-box">
            <div class="label">下单金额(元):</div>
            <div class="desc">{{ messageList.TotalPrice }}</div>
          </div>

          <div class="content-box">
            <div class="label">购买渠道:</div>
            <div class="desc">{{ messageList.PlatformIDName }}</div>
          </div>
          <div class="content-box">
            <div class="label">卖家:</div>
            <div class="desc">{{ messageList.PurchaseCompanyName }}</div>
          </div>
          <div class="content-box">
            <div class="label">服务方:</div>
            <div class="desc">{{ messageList.ServiceCompanyName }}</div>
          </div>
          <div class="content-box">
            <div class="label">提交订单时间:</div>
            <div class="desc">{{ messageList.CreateTime }}</div>
          </div>
        </div>

        <div class="drawer_footer">
          <div class="footer-btn" style="background-color: #343434;color:#fff;" @click="openRefund" v-if="
            (messageList.STATUSID == 13 && messageList.TypeID == 1 && messageList.MerchantID == octopus.passport.authorization.company) ||
            (messageList.STATUSID == 10 && messageList.TypeID == 1 && messageList.MerchantID == octopus.passport.authorization.company)
          ">
            申请退款
          </div>

          <div class="footer-btn" v-if="messageList.TypeID == 1" @click="linkTo">
            再来一单
          </div>
        </div>
      </div>
      <!-- 待使用，使用中，已使用 -->
      <div class="drawer_box" v-if="pageShow == 1">
        <div class="drawer_title">
          <div class="drawer_t">
            <div class="drawer_t_l">
              <img class="drawer_t_l_img" src="/static/skin/herodoo/main/platform/home/img/piliangoumai.png" alt="" />
              查看订单
            </div>
            <img class="drawer_t_r" src="/static/skin/herodoo/main/platform/home/img/guanbi.png" alt=""
              @click="drawer = false" />
          </div>
        </div>
        <div class="drawer_content">
          <div class="content-box">
            <div class="label">订单编号:</div>
            <div class="desc">
              {{ messageList.Code }}
              <div class="states" :style="getState(messageList.STATUS, 'STATUS').style">
                {{ messageList.STATUS }}
              </div>
            </div>
          </div>
          <div class="content-box">
            <div class="label">权益名称:</div>
            <div class="desc name" @click="drawerUpDetail">
              {{ messageList.Name }}
            </div>
          </div>
          <div class="content-box" v-if="messageList.TypeID == 2">
            <div class="label">包含权益:</div>
            <div class="desc">
              <div class="rightsList">
                <div class="rights_son_box" v-if="alreadyList && alreadyList != false">
                  <div class="rights_son" v-for="item in alreadyList" :key="item.ID">
                    <div class="rights_son_title">{{ item.Name }}</div>
                  </div>
                </div>
                <div class="rights_son_box" v-if="buyList && buyList != false">
                  <div class="rights_son" v-for="item in buyList" :key="item.ID">
                    <div class="rights_son_title">{{ item.Name }}</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
          <!-- <div class="content-box">
                        <div class="label">已核销数量:</div>
                        <div class="desc">{{ messageList.Quantity }}</div>
                    </div> -->

          <div class="content-box">
            <div class="label">购买数量:</div>
            <div class="desc">{{ messageList.Quantity }}</div>
          </div>

          <div class="content-box">
            <div class="label">平台价格:</div>
            <div class="desc">{{ messageList.CostPrice }}</div>
          </div>

          <div class="content-box">
            <div class="label">下单总金额(元):</div>
            <div class="desc">{{ messageList.TotalPrice }}</div>
          </div>

          <div class="content-box">
            <div class="label">购买渠道:</div>
            <div class="desc">{{ messageList.PlatformIDName }}</div>
          </div>
          <div class="content-box">
            <div class="label">服务方:</div>
            <div class="desc">{{ messageList.ServiceCompanyName }}</div>
          </div>
          <div class="content-box">
            <div class="label">下单时间:</div>
            <div class="desc">{{ messageList.CreateTime }}</div>
          </div>

          <div class="content-box">
            <div class="label">卖家:</div>
            <div class="desc">{{ messageList.PurchaseCompanyName }}</div>
          </div>

          <div class="block" v-if="false">
            <div class="list-box">
              <div class="left">剩余核销码数量：:</div>
              <div class="right" v-if="messageList.STATUS != '已使用'">
                10个
              </div>
              <div class="right" v-else>
                0个
              </div>
            </div>
            <div class="list-box" v-if="messageList.STATUS != '已使用'">
              <div class="left">添加使用人:</div>
              <div class="right">
                <div class="add_content" @click="openIssue">
                  <i class="el-icon-plus"></i>
                  <span>点击添加使用人</span>
                </div>
              </div>
            </div>
            <div class="list-box">
              <div class="left">核销码下发列表:</div>
            </div>
            <div class="block">
              <el-table :data="tableData" style="width: 100%">
                <el-table-column prop="" label="序号" width="60" type="index" :index="getIndex">
                </el-table-column>
                <el-table-column prop="ProductType" label="使用人" width="180">
                </el-table-column>
                <el-table-column prop="ProductType" label="使用状态" width="180">
                  <template>
                    <div>11111</div>
                  </template>
                </el-table-column>
                <el-table-column prop="ProductType" label="数量" width="180">
                </el-table-column>
                <el-table-column prop="ProductType" label="下发时间" width="180">
                </el-table-column>
              </el-table>
              <el-pagination v-if="total > 0" background layout="prev, pager, next" :total="total"
                :current-page="currentPage" :page-size="pageSize" @current-change="handleCurrentChange">
              </el-pagination>
            </div>
          </div>
        </div>
      </div>
      <!-- 退款中，退款待审核，退款审核中，已退款，退款已驳 -->
      <div v-if="pageShow == 2">
        <div class="drawer_title">
          <div class="drawer_t">
            <div class="drawer_t_l">
              <img class="drawer_t_l_img" src="/static/skin/herodoo/main/platform/home/img/piliangoumai.png" alt="" />
              查看退款信息<span class="iconfont" v-if="messageList.STATUS == '退款已驳回'">&#xe7fc;</span>
            </div>
            <img class="drawer_t_r" src="/static/skin/herodoo/main/platform/home/img/guanbi.png" alt=""
              @click="drawer = false" />
          </div>
        </div>
        <div class="drawer_content">
          <div class="tabbar">
            <div @click="tabbar = 0">退款信息</div>
            <div @click="tabbar = 1">审核历史</div>
          </div>

          <div class="block" v-if="tabbar == 0">
            <div class="content-box">
              <div class="label">订单编号:</div>
              <div class="desc">
                {{ messageList.Code }}
                <div class="states" :style="getState(messageList.Status || messageList.STATUS, 'STATUS').style">
                  {{ messageList.Status || messageList.STATUS }}
                </div>
              </div>
            </div>
            <div class="content-box">
              <div class="label">权益名称:</div>
              <div class="desc name" @click="drawerUpDetail">
                {{ messageList.Name }}
              </div>
            </div>
            <div class="content-box" v-if="messageList.TypeID == 2">
              <div class="label">包含权益:</div>
              <div class="desc">
                <div class="rightsList">
                  <div class="rights_son_box" v-if="alreadyList && alreadyList != false">
                    <div class="rights_son" v-for="item in alreadyList" :key="item.ID">
                      <div class="rights_son_title">{{ item.Name }}</div>
                    </div>
                  </div>
                  <div class="rights_son_box" v-if="buyList && buyList != false">
                    <div class="rights_son" v-for="item in buyList" :key="item.ID">
                      <div class="rights_son_title">{{ item.Name }}</div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="content-box">
              <div class="label">售后原因:</div>
              <div class="desc">{{ messageList.RefundReasons }}</div>
            </div>

            <div class="content-box">
              <div class="label">申请退货数量:</div>
              <div class="desc">{{ messageList.RefundQuantity }}</div>
            </div>

            <div class="content-box">
              <div class="label">应退金额:</div>
              <div class="desc">{{ messageList.RefundAmount }}</div>
            </div>

            <div class="content-box">
              <div class="label">手续费(元):</div>
              <div class="desc">{{ messageList.ServiceCharge }}</div>
            </div>

            <!-- <div class="content-box">
                            <div class="label">申请退款金额(元):</div>
                            <div class="desc">{{ }}</div>
                        </div> -->

            <div class="content-box">
              <div class="label">购买数量:</div>
              <div class="desc">{{ messageList.Quantity }}</div>
            </div>

            <div class="content-box">
              <div class="label">购买金额(元):</div>
              <div class="desc">{{ messageList.UserPayTotalPrice }}</div>
            </div>

            <div class="content-box">
              <div class="label">退货渠道:</div>
              <div class="desc">{{ messageList.RefundChannel }}</div>
            </div>

            <div class="content-box">
              <div class="label">申请退货时间:</div>
              <div class="desc">{{ messageList.RefundTime }}</div>
            </div>

            <div class="content-box">
              <div class="label">下单时间:</div>
              <div class="desc">{{ messageList.OrderTime }}</div>
            </div>
          </div>
          <div class="block" v-if="tabbar == 1">
            <div class="history" v-if="historyData != false">
              <div class="audit-item" v-for="item in historyData" :key="item.ID">
                <div class="audit-left"></div>
                <div class="audit-right">
                  <div class="audit-right-box">
                    <div class="tag" :class="{
                      success: [4, 6, 7].includes(item.StatusID),
                      error: [3, 5].includes(item.StatusID),
                      info: [1, 2].includes(item.StatusID)
                    }">
                      {{ item.Status }}
                    </div>
                    <div class="text">{{ item.Opinions }}</div>
                  </div>
                  <div class="audit-right-box">
                    <div class="date">{{ item.CreateTime }}</div>
                    <div class="approver">{{ item.CreateUserID }}</div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </div>
    </el-drawer>
    <!-- 查看权益详情 -->
    <rights-detail :octopus="octopus" ref="rightsDetail"></rights-detail>
    <!-- 添加使用人 -->
    <Issue ref="Issue"></Issue>
    <!-- 申请退款 -->
    <refundApply ref="refundApply" :messageList="messageList" @reload="reload"></refundApply>
  </div>
</template>

<script>
import orderStatus from "../../../../../../static/skin/default/base/js/orderStatus";
import refundApply from "./refundApply.vue";
import rightsDetail from "./rightsDetail.vue";
import Issue from "./issue.vue";
export default {
  name: "look_dialog",
  components: {
    rightsDetail,
    Issue,
    refundApply
  },
  props: {
    messageList: {
      type: Object,
      default: {}
    }
  },
  data() {
    return {
      octopus: this.$parent.octopus,
      drawer: false,
      rightList: [],
      peopleData: [],
      states: {
        name: "订单状态",
        is_index: 0,
        is_type: "",
        arr: orderStatus
      },
      currentPage: 1, //当前页
      pageSize: 5, // 每页显示条数
      pageShow: 1, // 0 订单待支付，订单已关闭 ,1待使用，使用中，已使用 ,2  退款中，退款待审核，退款审核中，已退款，退款已驳
      total: 0,
      tabbar: 0,
      historyData: [],
      buyList: [],
      alreadyList: []
    };
  },
  watch: {
    drawer(v) {
      // 在这里可以执行其他操作
    }
  },
  computed: {},
  mounted() { },
  methods: {
    drawerOp() {
      this.drawer = true;
      this.getInfo();
      this.buyList = [];
      this.alreadyList = [];

      // this.api_1256(this.messageList.ID);
      // 1,10,40,60 -> 展示0
      // 13,15,17 -> 展示1
      // 30,32,33 -> 展示2
      if ([1, 6, 10, 40].includes(this.messageList.STATUSID)) {
        this.pageShow = 0;
      }
      if ([13, 15, 17].includes(this.messageList.STATUSID)) {
        this.pageShow = 1;
      }
      if ([30, 31, 32, 33].includes(this.messageList.STATUSID)) {
        this.pageShow = 2;
      }

      if (this.messageList.TypeID == 2) {
        this.getCompileData().then(res => {
          res.map(v => {
            if (v.CompanyID == this.messageList.CompanyID) {
              this.alreadyList.push(v);
            } else {
              this.buyList.push(v);
            }
          });
        });
      }
    },
    getState(i, type) {
      this.getStatusPage(i);
      let obj = {};
      if (type == "index") {
        this.states.arr.filter((item, o) => {
          if (o == i) {
            obj = item;
          }
        });
      }
      if (type == "id" || type == "type") {
        this.states.arr.filter(item => {
          if (item[type] == i) {
            obj = item;
          }
        });
      }
      if (["STATUS", "status", "Status"].includes(type)) {
        this.states.arr.filter(item => {
          if (item.name == i) {
            obj = item;
          }
        });
      }
      obj.style = `color:${obj.color};background:${obj.bgColor};borderColor:${obj.color
        }`;
      return obj;
    },
    getStatusPage(text) {
      let arr = [
        ["订单待支付", "订单已关闭"],
        ["待使用", "使用中", "已使用"],
        ["退款中", "退款待审核", "退款审核中", "已退款", "退款已驳"]
      ];
      arr.filter((x, i) => x.filter((y, j) => y == text));
    },
    // 售卖情况
    getRightList() {
      let o = this;
      this.octopus.request.api.post(
        "/Octopus/Engine/List",
        {
          id: 605,
          cellData: [
            { name: "Code" }, // 订单编号
            { name: "CostPrice" }, // 平台价格
            { name: "CreateTime" }, // 下单时间
            { name: "EquityFlagList" }, // 权益标签id
            { name: "EquityID" }, // 权益id
            { name: "Name" }, // 权益名称
            { name: "PlatformTypeID" }, // 购买渠道
            { name: "ProductFlagList" }, // 产品标签ID
            { name: "Purchaser" }, // 买家
            { name: "Quantity" }, // 数量
            { name: "Seller" }, // 卖家
            { name: "ServerCompanyID" }, // 服务方ID
            { name: "Status" }, // 订单状态
            { name: "TotalPrice" }, // 下单金额
            { name: "TransferRuleID" } // 采购公司限制
          ],
          paramData: {
            PurchaserCompanyID: this.messageList.PurchaserCompanyID,
            Code: this.messageList.Code,
            CompanyID: this.octopus.passport.authorization.company
          }
        },
        function (data) {
          if (data.status.code == 200) {
            o.rightList = data.content.queryData;
          } else {
            o.octopus.tips.error(data);
          }
        }
      );
    },
    handleCancel() {
      this.$refs.cancelOrder.drawerOp();
    },
    // 展示权益详情
    drawerUpDetail() {
      this.$refs.rightsDetail.init(this.messageList.EquityID);
      this.$refs.rightsDetail.drawerOp(this.alreadyList, this.buyList);
    },
    handleCurrentChange(val) {
      this.currentPage = val;
    },
    handleCancelChange(val) {
      this.cancelPage = val;
    },
    linkTo() {
      this.drawer = false;
      if (this.messageList.TypeID == 1) {
        this.octopus.router.jump(
          `/MMS/AIGC/RightsDetails/List?rightsType=SC&type=DG&rightsId=${this.messageList.EquityID
          }&CompanyID=${this.messageList.CompanyID}&click=true`
        );
      }
      // this.octopus.router.jump(
      //   `/MMS/AIGC/RightsDetails/List?rightsType=SC&rightsId=${
      //     this.messageList.EquityID
      //   }&click=true`
      // );
    },
    openIssue() {
      this.$refs.Issue.open();
    },
    getInfo() {
      this.octopus.request.api.post(
        "/Octopus/Engine/List",
        {
          id: 1266, // 菜单表的八爪鱼ID
          cellData: [
            { name: "CreateTime" }, // 申请 or 提交审核 时间
            { name: "CreateUserID" }, // 创建人 | 审核人
            { name: "ID" }, // ID
            { name: "Opinions" }, // 审核意见
            { name: "RefundID" }, // 退款表ID
            { name: "Status" }, // 退款状态
            { name: "StatusID" } // StatusID
          ],
          paramData: {
            PurchaseID: this.messageList.PurchaseID
          }
        },
        // 处理回调事件，通过分析data.status.code的状态来实现。
        data => {
          if (data.status.code === 200) {
            this.historyData = data.content.queryData;
          } else {
            this.octopus.tips.error(data);
          }
        }
      );
    },
    // 获取权益详情
    getCompileData() {
      return new Promise((resolve, reject) => {
        let o = this;
        o.octopus.request.api.post(
          "/Octopus/Engine/List",
          {
            id: 1184,
            cellData: [
              { name: "CostPrice" }, // 平台价格
              { name: "CompanyID" }, // 子权益公司ID
              { name: "FlagList" }, // 权益标签
              { name: "FlagListName" }, // 权益标签
              { name: "ID" }, // ID
              { name: "Name" }, // 权益标题
              { name: "SalePrice" }, // 市场价格
              { name: "SoldQuantity" }, // 已售数量
              { name: "TypeID" }, // 权益类型
              { name: "ExpireTime" }, // 到期时间
              { name: "EffectiveTime" }, // 生效时间
              { name: "InventoryQuantity" }, // 库存数量
              { name: "SoldQuantity" }, // 已售数量
              { name: "EquityCount" }, // 权益数量
              { name: "EquityServiceRate" }, // 小程序服务费
              { name: "PlatformServiceRate" }, // 平台服务费
              { name: "UserCount" } // 使用人数
            ],
            paramData: {
              ID: o.messageList.EquityID
            }
          },
          data => {
            if (data.status.code == 200) {
              resolve(data.content.queryData);
            } else {
              o.octopus.tips.error(data);
              reject(false);
            }
          }
        );
      });
    },
    // 打开申请退款
    openRefund() {
      this.$refs.refundApply.drawerOp(this.messageList.ID);
    },
    reload() {
      this.drawer = false;
      this.$emit("refresh");
    },
    api_1256(id) {
      this.octopus.request.api.post(
        "/Octopus/Engine/List",
        {
          id: 1256, // 菜单表的八爪鱼ID
          cellData: [
            { name: "Code", width: 200, filterKey: "like", filterValue: "" }, // 交易订单
            { name: "Name", width: 400 }, // 交易订单
            // { name: "EquityName", width: 350 },	// 权益名称
            { name: "RefundReasons", width: 300 }, // 退款原因
            { name: "Status" }, // 售后状态
            { name: "RefundQuantity" }, // 退款数量
            { name: "RefundAmount" }, // 退款金额
            { name: "ServiceCharge" }, // 手续费（元）
            { name: "Quantity" }, // 购买数量
            { name: "RefundPlatformID" }, // 退款渠道
            { name: "PurchaseTime", width: 150 }, // 下单时间
            { name: "ID", filterKey: "=", filterValue: id }, // ID
            { name: "CompanyID" }, // 卖家
            { name: "EquityID" }, // 权益ID
            { name: "IsRefundAudit" }, // 退款是否需要审核（0不需要 1需要）
            { name: "OutRefundCode" }, // 退款编号
            { name: "ProductFlagList" }, // 产品标签
            { name: "ProductFlagListName" }, // 产品标签
            { name: "ProductID" }, // 产品ID
            { name: "ProductName" }, // 产品名称
            { name: "PurchaseContact" }, // 订单联系人
            { name: "PurchaseMobile" }, // 订单联系手机号
            { name: "PurchaseName" }, // 买家
            { name: "PurchasePlatformID" }, // 购买渠道
            { name: "PurchaseRemarks" }, // 订单备注
            { name: "RefundTime" }, // 申请退货时间
            { name: "ServiceCompany" }, // 服务方
            { name: "StatusID" }, // 状态ID
            { name: "TradeCode" }, // 交易订单
            { name: "updateTime" }, // 最后修改时间
            { name: "UserPayTotalPrice" }, // 购买金额（元）

            { name: "OrderTime" }, //下单时间
            { name: "RefundChannel" }, //退款渠道
            { name: "ExpireTime" }, // 权益结束时间
            { name: "CostPrice" }, // 平台价格
            { name: "MerchantID" }, // 买家
            { name: "CompanyID" }, // CompanyID
            { name: "PlatformID" }, // PlatformID
            { name: "PurchaseID" } // PurchaseID
          ],
          paramData: {
            CompanyID: this.octopus.passport.authorization.company,
            CreateUserID: this.octopus.passport.id
          }
        },
        // 处理回调事件，通过分析data.status.code的状态来实现。
        data => {
          if (data.status.code === 200) {
            this.historyData = data.content.queryData;
          } else {
            this.octopus.tips.error(data);
          }
        }
      );
    }
  }
};
</script>
<style scoped>
.drawer_box {
  padding: 3rem 0.8rem 3rem 0;
  height: calc(100% - 5rem);
  display: flex;
  flex-direction: column;
}

.drawer_title {
  box-shadow: 0px 5px 5px rgb(230 228 228 / 30%);
  padding: 1rem 0;
}

.title {
  font-size: 1.8rem;
  font-weight: bold;
  padding: 1rem 0;
}

.drawer_t {
  padding: 0 2.8rem;
  display: flex;
  justify-content: space-between;
}

.drawer_t_l {
  display: flex;
  align-items: center;
  font-size: 2rem;
  font-weight: bold;
}

.drawer_t_l_img {
  width: 2.8rem;
  margin-right: 1rem;
}

.drawer_t_r {
  width: 3rem;
  height: 3rem;
  cursor: pointer;
}

.button_box {
  margin-top: 1rem;
  padding: 0 3rem;
  display: flex;
}

.drawer_content {
  overflow-y: auto;
  margin-top: 1.5rem;
  height: calc(100vh - 13rem);
  padding: 0 3rem;
  width: 100%;
  padding-bottom: 1rem;
}

.drawer_content .title {
  font-size: 1.8rem;
  font-weight: bold;
}

.drawer_content .title2 {
  font-size: 1.8rem;
}

.drawer_content .driver-title {
  margin-top: 1em;
}

.content-box {
  display: flex;
  align-items: center;
  margin: 2rem 0 2rem 2em;
}

.mt-10 {
  margin-top: 20px;
}

.content-box .label {
  width: 25%;
}

.content-box .label .label-bold {
  font-size: 1.8rem;
  font-weight: bold;
}

.content-box .desc {
  /* flex: 1; */
  display: flex;
  flex-direction: row;
  align-items: center;
}

.name {
  color: #288ffd;
  text-decoration: underline;
  cursor: pointer;
}

.states {
  /* font-size: 1vw; */
  padding: 5px 10px;
  border: 1px solid #000;
  border-radius: 5px;
  margin-left: 20px;
}

.drawer_footer {
  display: flex;
  justify-content: flex-end;
  align-content: center;
}

.drawer_footer .footer-btn {
  line-height: 4rem;
  background-color: #f78c51;
  color: #fff;
  margin: 0 1rem;
  padding: 0 3rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.drawer_footer .reject {
  background-color: #2e3037;
}

.end {
  display: flex;
  justify-content: flex-end;
}

>>>.el-pagination.is-background .el-pager li:not(.disabled).active {
  background-color: #ff8a36;
}

.list-box {
  display: flex;
  width: 100%;
  justify-content: space-between;
}

.list-box {
  /* height: 3.5rem; */
  line-height: 4rem;
  margin-top: 2rem;
}

.list-box .left {
  width: 20%;
  font-size: 1.5rem;
  /* display: flex;
    align-items: center; */
}

.list-box .right {
  width: 80%;
}

.list-box .right .delte {
  font-size: 1.6rem;
  color: #898582;
  margin-left: 2rem;
  cursor: pointer;
}

.list-box .right .delte:hover {
  color: #f87338;
}

.list-box .right .add_content {
  height: 4.5rem;
  line-height: 4.5rem;
  border: 1px dashed #f87338;
  display: inline-block;
  padding: 0 1.5rem;
  cursor: pointer;
  border-radius: 0.5rem;
}

.list-box .right .el-input {
  width: 100%;
  height: 4.5rem;
}

.list-box .right .add_content i {
  color: #f87338;
  font-weight: 700;
  margin-right: 0.5rem;
}

.list-box .right>>>.el-input__inner {
  cursor: pointer;
  padding-right: 35px;
  height: 100%;
}

.list-box .right>>>.el-input__inner {
  border: 1px solid #ff0000 !important;
}

.list-box .right .big-txt {
  font-size: 1.8rem;
  font-weight: 700;
}

.tabbar {
  display: flex;
  flex-direction: row;
}

.tabbar div {
  padding: 10px 30px;
  cursor: pointer;
  border: 1px solid #a6a6a6;
}

.tabbar div:nth-child(1) {
  border-radius: 5px 0 0 5px;
}

.tabbar div:nth-child(2) {
  border-radius: 0 5px 5px 0;
}

.history {
  margin-left: 2em;
  margin-top: 1em;
}

.history .audit-item {
  display: flex;
}

.history .audit-item .audit-left {
  position: relative;
  width: 2px;
  height: 60px;
  border-radius: 4px;
  background-color: #dfdfdf;
}

.history .audit-item .audit-left::before {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ff8755;
}

.history .audit-item .audit-right {
  margin-left: 16px;
}

.history .audit-item .audit-right .audit-right-box {
  display: flex;
  align-items: center;
  margin-top: 15px;
}

.history .audit-item .audit-right .audit-right-box:not(:first-child) {
  margin-top: 8px;
}

.history .audit-item .audit-right .audit-right-box .tag {
  font-size: 1em;
  padding: 1px 2px;
  color: #fff;
  border-radius: 2px;
  margin-right: 6px;
  background-color: #43b4ff;
}

.history .audit-item .audit-right .audit-right-box .tag.success {
  background-color: #3fdf72;
}

.history .audit-item .audit-right .audit-right-box .tag.info {
  background-color: #43b4ff;
}

.history .audit-item .audit-right .audit-right-box .tag.error {
  background-color: #f75352;
}

.history .audit-item .audit-right .audit-right-box .date {
  margin-right: 6px;
  /* color: rgb(209, 209, 209); */
}
</style>
